package com.qf.mapper;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.qf.mapper
 * @Description:
 * @Date 2022/5/31 10:21
 */
public interface Usermapper {

    /**
     * 查询用户表所有数据
     * @return
     */
    public List<User> findUserAll();

    /**
     * 模糊查询
     * @param name
     * @return
     */
    public List<User> finUserByname(@Param("name") String name);

    /**
     * 添加用户
     */
    public  void  addUser(@Param("user") User user);

    /**
     * 修改用户信息
     * @param user
     */
    public  void  update( @Param("user") User user);


    public void Delete (@Param("id") Integer id);

}
